import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import button from '../view/General/buttonIndex'
import lcon from '../view/General/lconIndex'

/*配置路由*/
const routes = [
    { path: "/button", component: button },
    { path: "/lcon", component: lcon }
]

/*实例化路由*/
const router = new VueRouter({
    routes // （简写）相当于 routes: routes
})


/*导出路由模块*/
export default router